change unless statement to if statement