added second constructor