adds a new method