added parameter to constructor