update for entity