building the package structure