refactor post policy