Changed the operator used in the loop