added parameter to the constructor