added CpG boundary function