Revert "reverted the last changes on the `globalAlpha` function"

This reverts commit df9824062b5d704d1ecd8ea0305805edbf0c17a4.