adding a set to keep track of keys