filter out identical blocks