transform from records back to a sheet