add package funtion