fixing pmd warnings