put filter out of original converttoprobisformat.py file and delete a few redundant code