new function for adding attributes from vtile