Add condition to print non-pointer data structure