add time telling function