fix for build, from old code