rename create write model method in factory