keep track of leg order