removed legacy code that was not used