add vector lock