creating a key class at nodeMap