finished wb1.hp.sh, will need to add filtering function next