keep codes intact