Use the same code with the new variables, that might work. Also, cb[2], according to what I see, does not exist. If this is not the case, please share with me the whole project. If possible, share the whole project next time so would-be answerers can debug your code.