remove array indexof that it not used