really added wraps to qgen.func.R