script for rendering