backup of reference code