save before messing with type