added the ability to duplicate a method