make animate() method private