type fucntion is registered