rewrite create method