fix unneded code