fix coveralls gem warning
refactoring