added visual time function