added loop to sending.sh script