write base action