Modified function operator[]