code formatting and addin the treatment intent section