state local
writer example