fixed the boundary system