now compiles with gelato code