Added change package function

tested