update segmentationLayer (nog bug in -> infinite loop)

r