implemented 40 strategy for P - not so good and commented out