added treshold as param to movement