completed constructor for members