adding back update conditions