new DP.py for testing method