added in importance sampling host code