model to structure