added to_model for decorator