add inspector function