fixed codenarc violations