change the procedure of rendering