added functions to inspect