adjusted fixed arithmetic so it is actually correct