single input search queries working correctly