update method to get relations