constructor adapted tested