making update for TPEntities