update
add typeCheck();  add typeCheck & throw error in declariation and  defination part