updated legs controller