document calling conventions