why do you assign Unit to a val?