tidy the unsafeness