fixing query rename