make sure threshold is at least 1 row