proper indexing