Could you also add the delaration of _candidatesLength here and explain how to use it, especially about when to set the value to 0.