added write decl