update packages in classes