fixed pmd warnings