deal with the annotation file. it can be further updated