added globalAlpha preservation