Made assign/return types for indexing