first draft of comb fn, untested