init deal function