chnages to bad code