rewrote part of case 2 to manipulate DOM directly
parse case 2