fixed all the relations