start of edgel clustering