fixed if else