implemented list_keys function