write module fixed