optimize the build