check return status