correct variable spelling $fracnhise_name to $franchise_name