implementing variable alphas - unstable