remove superfluous code from annotation control