think recursive algo works for all chaps...lets see