modified convertor.py