working render buffer