fix alpha formula