properly capture the body