moved inspection to build