added threshold to default output.