modified get_new_keys