now looks for type of variables