reduce variable