add row locking