complete string generation for 2d (first draft)