extracted method form text field