update conditions