just have to look up how ref works