restored RETURN TO code