adapted the get method for non-continuous sub indexing