add total segments - v.1.1