remove duplicate code in feedback class