improve CreateNextPathCell readability