change config to annotation