refactoring, using Parameter class to find annotations