new getter method for location