add loop-id