refactoring post rendering