del redundant code and fix package.json