boxing and locking