boundry fix