added functions to associate timestamps