fixed a bug within the timevalue() function