write only if we read positive amount...not each iteration