first variant of compare script