A study of flatness