started writing pARM-functions