extract keys to constant