added else to the if/else/end