formatting; capturing if..else if..else