fixed the griewank error