loop using (do) instead of a producer

Signed-off-by: Jan Dvořák <mordae@anilinux.org>