simplification routine