complete getkeysbyidx