removed unnecessary case statement.