fixing link errors