fixed boundry bug. now <= in subDividePatch