clean up a method