extract methods to new file