modify the implementation of do.py