made order of args for fold consistent with other functions