update jimmy query function