fixing back codes