alg_hw08 bug