add Mutex instead of lock