added new optional output for ar_cosmap