updated install package method