added methods to location