legs implemented