deprecated old odd to entity function