tpvar_data can not be initialise, cast to array