added p2f bug