added auxiliary constructor.