remove redundent function