test display
fix bug in display, fix a couple small bounds errors