background subtraction added (chap 11)