moved various funcs.