write reference id rather than reference object itself