fix codenarc issues