seperate functions related to link