fixed cpplint error
refactoring