code clean up, reverse render