refactor problem 67