fixing codenarc rule violation