cookies sometimes may not exist and we have to take it in consideration