how inspect(object) works