updating ref's