making symlink helper a function