buffer output done but not tested