added function correct_variable_format