updated legacy version