made loops work