debugging phOptimization