implemented paragraph-loop