in to_array, hatch was not being returned