refactor update data package function