simplify function in tz_util