Modifying the relation in model