fixed arrity to 2 on internal functions