modified extend path