Add CHECK.class function (tmp)
arg checking functions
added arg checking functions