updated render script with liz's changes