working on the inspection part of the code