added hash search for view depth