complete comment for get_required_key method