optimized flipflops working in main model