remove unnecessary vector equals checking