concating the if else structures