enhancement by using integer instead of timestamp