fixed if staement