set auto condition