wrap record in segments