removes legacy code