removed serial.available because 1. it caused problems. 2. it was unnecessary