remove useless code in chapter05