fixed while loop in send/create