made the create multiple model at  once function to work