implemented processAnnotations