move the create logic in helpers