changes to R5: simple path. Added extended feature (visited)