update translations algorithm