first two conditions