remove unnecessary arithmetic