*moved the threshold to the config and updated the references