added support for all kinds of styles