remove not used.
add another type lookup functions and rename.