fix second constructor