trying to do expanded table, broken when selecting non zero index