refactor magix/body