level and input update