working on refs