correction in query and data display