refactored extract annotation parameters