revert double math madness