rebased stylize on string instead of value
udapted version