added how reference works