code clean
error haneling for extracting annotations