replace entities ->items