update init function for members