package update function