added Check_Type() to any functions that were missing it