add conditional constant and reference