removed unnecessary getText() call