codeclimate result
refactoring