added bc for obstacle