Update for input
Update for input