Changed check_name to name