refactor, extract method.