added more code to send the file