reverted the last changes on the `globalAlpha` function