spotted more significant differences from the C++ version