added npm function