small changes to refs