fixed bugs on input update

the input updated did not work, now works properly . A scratch test has
been added