reduce local variables