refactored annotation parameters extraction