modified createlinks