complete chapter14
bug fixes