move dealer init function