fixed problem with bandEdges, it works now