edit bad code