part of chap 3 codes.