added lock