for instead of if