fixing code-climate issues