fixed if stmt