add reference, some code