to perform a check