generating front links