10l, set ret to 0 when finished