What's the point of setting ret here?