improve Valid.keys splitter