store a.type[5] in the key map instead of bool