enum sample transformation