make render method private