add lock on operation of access of data member