interactive threshold finder program added