making a controller method private