fixed codeclimate issue