fixed typo with serial write