added conditions extracting