changed leg detection parameters