fixed the off by one error qpos value when iterating thru pileup; omg I cant believe didnt catch this till now