updated check method