remove :legacy code