taking out function in writePackageJson