link errors fixing