a quick fix for variable matching type