condition resolution optimization