Change threshold to judge straight or not