small method refactor