update whre in entities