using if with {}