for hw4 to view from browser
fix a bug