the standard is to use variable_real instead of my_variable when doing this sort of thing.