locking in the processing pipe