pseduo code for userlinks