remove unused lock() method