fixed if test