update conditional check