eliminate pointless diffs between this code and the version in OTP