removed unsave query function