flow controller implemented