pattern cases