added misc funcs