modify to printint on thermal printer