fixed jinkyu's code...