changing constructor in location handler