must use head instead of tail when sorted by time