addlink method added