cleaning up get time row func.