write demo works