update package struct