work around with 2D arrays in C