using pileup datas refID as reference
pass references by ref
cleaned out some commented code