legacy code moved away from new code