check explicit return code