fixed if block