finish logic of link up