lock is in Buffer