first stab at implementing pfor