refactor to create body method