fixing query to all