refactor:extract method