made some changes to h3p1