fixing treshhold