use if instead of unless