array to form shapes