code showing how to strip buffer id