modified the return code