remove redundant code: package_selected