this function extracts the higher level features
edited a line