Got the reset level mechanism to work

can be improved tho