functionized ecstasy code