changed so it compiles on new version