loops merged