Here you can see how to form loops on headpins.