what is mNumVersions? I see you mutate it below, but I'm not sure what rules this variable should follow.