add some comment
fix boundry bug