added ch16 and ch18 of ARM from Sergio (stan-users)