add reference counter