form data to 2d array