fixed if statment