Nested if else then added