You're adding the arrays for no reason. Remove DIM NUM1 DIM NUM2 from your program.