added initialization of pig