replaced Serial.write() with Serial.print()