move consumes to constructor
move also the InputTag in costructor
fix compilation problem