removing if else structure

removing unnecessary if else statement.