fix style
add time implementation