replaced logical operators: 'and' with '&&' ; 'or' with '||'