redundent code