combined case 1 & 2