added code for send grid