minor update to relative difference functionality