fix to get_inputs