use integer instead of float for timestamp