enter and exit pattern with update not working
bars changing incorrectly