write refactoring post