improve time type