update model relations and encounter function