modified threshold for demo