added alpha support for emit