new code for acceptance