adding && to logical operators