save into til format
correction and cleaning