setupBuffers into setup function