Effect of mean on variance function estimation in nonparametric regression