started implementing rejection handling