changed add_subvar_input to add_subvar