fix variance problem