extracting body from details and creating param variable