removed step in rip() that removes line before code chunk - that was wrong for my example at least