setting type in send