modified sampling time and get_input.c to include case of failure