Why is this ```var``` declaration needed?