get_body function