updated package function and manual