remove obseleted code