assigning on purpose within if ?