fixes for codeclimate