fixing flowcontrol call, updating sample