added the callback at the end of the check method