method select_key_val added