check url variable instead