don't let pointers get to size of buffer