coding standards
set body based on send type