refactoring post rendering 2