fixing linking