stripping query function added