shout out to p5 version,

especially since the p6 version is a simple translation