adding new callback argument to the variable object
to compute the offset