introduce write module