delete redundancy code