change buf format