error if same buffer is specified