resolving link errors