change the 'reg' to 'rej'