added flipflop