embed State into Buffer