an inspector function