rmax and tex on avoiding domain