fixed error in Q5