keyed table working correctly