added new constructor.