changed dictionary to list in companies