fixing link creation process