simplify the breadth first fill