switching to key table representation