improve 'maximize' slightly.