add location method to get params