reference nsurl as a struct properly