add segments helper methods for mass spectrum