delete legacy code