fill contents of two refs