made time_delta an arg; does not work but can be fixed; -k and -x are wrong datatype