remove old declaration from cpp file