update

remove legend and fix errors