comparing a variable to a variable in a switch can be risky,
and where is canvasIDList coming from?