updating funcs.c to use plot_runtime_error