r code: 521 bamg