Compare ref