added inspect method