updated tripodGait()