added unless to if elsif else pattern matcher