missed the boundary function