model to core converter