- check for error