get keys functionality completed