Change threshold according to the footsteps respectively