add indexAll method to trait