switched to using @Parameter instead of constructor