cleanup rendering