change to write method names into methods.txt