solved problem in location.equals