validated variance function - correct
validate variance function