make codes simpler