fixed the broken queries that i had listed