removed __index usage