handle first and last question