add loop on log