updated assign_variable