parsing segments