working key iterator