clarified var names in advanced example