better value retrieval for input fields