add bit array and array lock