model define support function with Schema as parameter