refactoring POST destructuring