remove unnecessary path checks