fflush part is added