removing defunct code that is no longer used
refactoring to allow Titan to use an index in a query