write article function added