changed some vars to company/companies