replacing 'and' with '&&'