delete some legacy code