Improved without exp id function for annotationTypes