struggling with edge merging