adds a method to location decorator