fix pmd violations