changed subscript operator not to return reference