fixed the buffer to make it a more reasonable size