replaced ent with entities