reverted changes for mongo query