separate index and list