better method for the storage of styles