update within transaction