update secondary query method