editing the IF statement