revised optimization conditions.