minor changes -> .text() to .val()