added tableutil function