remove or optimize some computations