added missing segment function. :P