got the leg working and error collection