implemented task print to buffer