trying to fix buffer bug 01