dont have to NULL buf, we wont use it anymore.