change how RETURN and OUT detect