exception because queryResult was moved to the bottom