adds pdf() calls to RIN code