'create' function created