fixed multiple definition errors