fixing a bug
changing threshold to lower value