simple method to get the last valid timestamp
initial import for methods to compute the mode
preparation for deployment