add the condiitial phrases, not tested yet
when tested, a && was needed on the first IF, I wrote & by mistake.