added clear input function