this fns are not used anymore