adding rejected rate, refactoring