removed tupical functions to typextfun