remove unneccesary head
add test case

 user defined type