cleaning of old rendering code