this assignment can also be done in the if-block below