allocate canny variables from stack