added deprecation warning to indexing operations