implemented code quality listener