refectoring schema rendering