better structure the patch rendering