generation of components and running comparison separated to separate methods