fixed the problems in the classic example