adding quesry string check