refactor keynode