refactoring method name retrieveCompanies to retriveData