use buffer to set data on invert