adding legacy version