updated function & fixed package name