Bourgain’s theorem says that under certain conditions a function can be approximated by a function which depends only on a small number of variables. By following his proof we obtain a generalization for the case that there is a nonuniform product measure on the domain of .