Adding sign based on ref