remove duplicated create function