moving ahead with compare and algoeithm making the cycle work