fix legacy code