need to check for failure with set as well