reduce n