before splitting legend