created no-repeat if-else statement