bugfix: initialize variable
filter small movements