fixed arithmetic fail