update to pig script