reorganize style data handling