fixes #13 codeclimate issues