you were supposed to take your hat off in the presence of that august personage , and bartholomew had certainly tried , but without any luck ; each time he took his hat off , another one , identical to the last , appeared beneath it .