added flip flop
working commit