getting create() to function