refactor retesselate