convert some entity functions