Reducing redundancy code