rendering cleanup