add beginAnnotation() and endAnnotation()