[Evgeny, Jason] keys and values function